//Buffer转换
//buf.toString([encoding[, start[, end]]])
var buffer=new Buffer("张三","utf8");

console.log(buffer);

//截取字符长度，包前不包后
console.log(buffer.toString("utf8",3,6));